package Decorator;

public class DecoratorPatternDemo {
    public static void main(String[] args){
        Shape Circle = new Circle();

        Shape redCircle = new RedShapeDecorator(Circle);

        Shape redRectangle = new RedShapeDecorator(new Rectangle());
        System.out.println("Circle with normal border");
        Circle.draw();

        System.out.println("=======================================");

        System.out.println("Circle of red border");
        redCircle.draw();

        System.out.println("=======================================");

        System.out.println("Rectangle of red border");
        redRectangle.draw();

        System.out.println("=======================================");
    }
}
